import request from '@/utils/request'

// 查询消息列表
export function listUser_message(query) {
  return request({
    url: '/ora/user_message/list',
    method: 'get',
    params: query
  })
}

// 查询消息详细
export function getUser_message(id) {
  return request({
    url: '/ora/user_message/' + id,
    method: 'get'
  })
}

// 新增消息
export function addUser_message(data) {
  return request({
    url: '/ora/user_message',
    method: 'post',
    data: data
  })
}

// 修改消息
export function updateUser_message(data) {
  return request({
    url: '/ora/user_message',
    method: 'put',
    data: data
  })
}

// 删除消息
export function delUser_message(id) {
  return request({
    url: '/ora/user_message/' + id,
    method: 'delete'
  })
}
